package com.amumu.drama.admin.modules.game.service;

import com.amumu.drama.common.modules.category.dto.GameSkuBatchHandlerDto;
import com.amumu.drama.model.PmsSkuStock;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 商品SKU库存管理Service
 * Created by macro on 2018/4/27.
 */
public interface AdminPmsSkuStockService extends IService<PmsSkuStock> {
    /**
     * 根据产品id和skuCode关键字模糊搜索
     */
    List<PmsSkuStock> getList(Long pid, String keyword);

    /**
     * 批量更新商品库存信息
     */
    int update(Long pid, List<PmsSkuStock> skuStockList);

    /** 批量上下架 */
    Integer batchUpdateStatus(GameSkuBatchHandlerDto batchHandlerDto);
}
